// (function(window){
	var stateChangeListener = function(){
		switch (request.readyState){
			case 1:
				console.log('载入中..');
				break;
			case 2:
				console.log('载入完成');
				break;
			case 3:
				console.log('交互');
				break;
			case 4:
				console.log('完成');
				if(request.status === 200){
					alert('完成');
					alert(request.responseText)
				}else{
					console.log('错误')
				}
				break;

		}
	};
	if(window.XMLHttpRequest){
		var request = new window.XMLHttpRequest();
	}else if(window.ActiveXObject){
		var request = new window.ActiveXObject('Microsoft.XMLHTTP');
	}

	if(request){
		request.onreadystatechange = stateChangeListener;
		request.open('POST', 'ajax.php?a=valeu&b=value2', true);
		request.setRequestHeader('MY-Header', 'AjaxRequest');
		request.send('aaaaaaaaaaa');

	}
// })(this);